﻿using System;

namespace MicroContainer.CompileTime
{
   [Serializable]
   internal sealed class FatalErrorException : Exception
   {
      /// <summary>
      /// Arguments for message.
      /// </summary>
      public object[] FormatArguments { get; private set; }

      /// <summary>
      /// Creates new <see cref="FatalErrorException"/> instance.
      /// </summary>
      /// <param name="messageId">Message ID</param>
      /// <param name="formatArguments">Message format arguments.</param>
      public FatalErrorException(string messageId, params object[] formatArguments)
         : base(messageId)
      {
         FormatArguments = formatArguments;
      }
   }
}
